setPort(3306); $test_config->disableTrackingPatchesInFile(); return $test_config;'; file_put_contents($file,$contents); } } function normalizeDirectory($dir) { return str_replace(array("/","\\"),DIRECTORY_SEPARATOR,$dir); } class MockDatabase implements DatabaseInterface { protected $appliedPatches; public function __construct(Config $config) { $this->appliedPatches = array(); } public function setAppliedPatches(Array $list) { $this->appliedPatches = array(); foreach ($list as $item) { $patch = new Patch($item); $this->appliedPatches[] = $patch; } } public function getAppliedPatches() { return $this->appliedPatches; } } class MockOutput implements OutputInterface { public function write($messages, $newline = false, $type = self::OUTPUT_NORMAL) {} public function writeln($messages, $type = self::OUTPUT_NORMAL) {} public function setVerbosity($level) {} public function getVerbosity() {} public function setDecorated($decorated) {} public function isDecorated() {} public function setFormatter(OutputFormatterInterface $formatter) {} public function getFormatter() {} }